﻿Imports System.Runtime.CompilerServices

Public Class UIBrush

End Class

Module UIBrushExtensions

	<Extension()>
	Sub [Set](ByRef brush As UIBrush, r As Byte, g As Byte, b As Byte)
		brush = New ColorBrush(Color.FromArgb(r, g, b))
	End Sub

	<Extension()>
	Sub [Set](ByRef brush As UIBrush, col As Color)
		brush = New ColorBrush(col)
	End Sub

End Module